

<template>
  <div class="platformRrules">
    <div class="content">
      <div class="all">
        <div class="tittle">公司介绍</div>
      </div>
      <div v-if="content">
        <div class="content_text" v-html="content"></div>
      </div>
      <div v-else class="none_list">
        <NoContent></NoContent>
      </div>
    </div>
    <!-- 底部 -->
  </div>
</template>
    
    <script setup>
// import topInfo from "../../components/topInfo.vue";
// import homePageBottom from "../../components/homePageBottom.vue";
import { ref, onMounted } from "vue";

import { useRouter } from "vue-router";
import { AboutUs } from "../../../api/platform";

const router = useRouter();
defineProps({
  msg: String,
});
onMounted(() => {
  getAboutUs();
});
const content = ref(null);
const getAboutUs = () => {
  AboutUs().then((res) => {
    console.log("关于我们", res.data.content);
    content.value = res.data.content.replace(
      /<img/g,
      "<img style='max-width:100%;height:auto;'"
    );
  });
};

// const handleSizeChange = (val) => {
//   console.log(`${val} items per page`);
// };
const tittle = router.currentRoute.value.query.tittle;
console.log("tittle", tittle);
</script>
    
    <style scoped lang="less">
/* .read-the-docs {
      color: #000;
    } */
.platformRrules {
  display: flex;
  flex-direction: column;
  // border: 1px solid red;
  // height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 0px 0px 0px 0px;
  .top {
    // border: 1px solid green;
    margin: 0 auto;
    background-color: #fff;
    width: 100%;
  }
  .content {
    // border: 1px solid red;
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    // 没有数据
    .none_list {
      height: calc(100vh - 346px);
      background: #ffffff;
      border-radius: 0px 0px 0px 0px;
      opacity: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      span {
        font-size: 22px;
        font-family: PingFang SC-Medium, PingFang SC;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.87);
      }
    }
    .all {
      height: 65px;
      background: #ffffff;
      border-radius: 0px 0px 0px 0px;
      opacity: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-sizing: border-box;
      padding: 0 16px;
      margin-top: 30px;
      .tittle {
        margin-top: 16px;
        font-size: 28px;
        font-family: PingFang SC-Bold, PingFang SC;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.87);
      }
    }

    .content_text {
      background-color: #fff;
      // box-sizing: border-box;
      // height: 98px;
      border-radius: 0px 0px 0px 0px;
      padding: 14px 16px;
      // border: 1px solid red;
      min-height: calc(100vh - 374px);
      // display: flex;
      // flex-direction: column;
      // border-bottom: 1px solid #e6e6e6;
      .number_01 {
        font-size: 16px;
        font-family: PingFang SC-Medium, PingFang SC;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.87);
        line-height: 30px;
      }
      .number_02 {
        height: 28px;
        font-size: 16px;
        font-family: PingFang SC-Bold, PingFang SC;
        font-weight: bold;
        color: #2487e8;
        line-height: 28px;
        margin: 12px 0;
      }
    }
  }
  .plat_bottom {
    margin-top: 25px;
  }
}
</style>
    